/**  
 *	VisualGroup JavaScript prototype Classes, version draf
 *  (c) 2008 Bill Vison <vison_ruan@126.com>
 *
 *
/*--------------------------------------------------------------------------*/
using("Vsg.EntityRecord");
using("Vsg.EntityRecord.GenericEntityRecord");

Vsg.EntityRecord.RunningJobSchedule = Ext.extend(Vsg.EntityRecord.GenericEntityRecord,{
	
	
	constructor:function($config) {
		
		// --- set attribute ---
		var $_defaultMapping = [
			{name:'code' , mapping:'code'},
			{name:'name' , mapping:'name'},
			{name:'triggerName' , mapping:'triggerName'},
			{name:'triggerGroup' , mapping:'triggerGroup'},
			{name:'status' , mapping:'status'},
			{name:'nextExecTime' , mapping:'nextExecTime'},
			{name:'startTime' , mapping:'startTime'},
			{name:'jobClass' , mapping:'jobClass'}
		];
		
		var $mapping =null;
		if ($config != null && $config.mapping != null) {
			$mapping = $config.mapping;
		} else {
			$mapping = $_defaultMapping;
		}


		//Ext.apply(this , $config);
		// --- mapping ----
		var $map = null;
		while ( ($map = $mapping.shift()) != null ) {
			this.addMapping( $map );
		};

		Vsg.EntityRecord.RunningJobSchedule.superclass.constructor.call( this );
	}

});
